﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Objects.DataClasses;

namespace FRL.DebtChased.Repository
{

	/// <summary>
	/// Extensions to the CommOut model
	/// </summary>
	public partial class CommOut
	{

		/////////////////////////////////////////////////////////////
		// Enumerations

		/////////////////////////////////////////////////////////////
		// Attributes

		/////////////////////////////////////////////////////////////
		// Static Operations

		public static string Queue(
			DebtChasedEntities ent,
			int iAccountId,
			List<int> InvoiceIds,
			int iCommTemplateId,
			CommOutTarget.eTravelType targetType,
			int iContactPointOrAddressId,
			int? iUserId
		)
		{

			// Declare return variable
			string strError = null;

			// TODO
			// This has all changed
			strError = Definitions.DevelopmentMessage;

			// Return variable
			return strError;

		}

	}

	/// <summary>
	/// Extensions to the CommOutTarget model
	/// </summary>
	public partial class CommOutTarget
	{

		/////////////////////////////////////////////////////////////////
		// Enumerations

		public enum eTravelType
		{
			NotSet = 0,
			Fax = 1,
			Email = 2,
			Post = 3,
			SMS = 4,
		}

		public enum eToCcBccType
		{
			To,
			Cc,
			Bcc,
		}

		/////////////////////////////////////////////////////////////
		// Attributes

		public eTravelType TravelType
		{
			get { return (eTravelType)this.fdTravelType; }
			set { this.fdTravelType = (int)value; }
		}

		public eToCcBccType ToCcBccType
		{
			get { return (eToCcBccType)this._fdToCcBccType; }
			set { this.fdToCcBccType = (int)value; }
		}

	}

}
